Optimal. Leaf size=165 \[ \frac{11 d^{7/2} \tan ^{-1}\left (\frac{\sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{8 a^3 f}+\frac{d^{7/2} \tan ^{-1}\left (\frac{\sqrt{d}-\sqrt{d} \tan (e+f x)}{\sqrt{2} \sqrt{d \tan (e+f x)}}\right )}{2 \sqrt{2} a^3 f}-\frac{7 d^3 \sqrt{d \tan (e+f x)}}{8 a^3 f (\tan (e+f x)+1)}-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a \tan (e+f x)+a)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.636871, antiderivative size = 165, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.28, Rules used = {3565, 3645, 3653, 3532, 205, 3634, 63} \[ \frac{11 d^{7/2} \tan ^{-1}\left (\frac{\sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{8 a^3 f}+\frac{d^{7/2} \tan ^{-1}\left (\frac{\sqrt{d}-\sqrt{d} \tan (e+f x)}{\sqrt{2} \sqrt{d \tan (e+f x)}}\right )}{2 \sqrt{2} a^3 f}-\frac{7 d^3 \sqrt{d \tan (e+f x)}}{8 a^3 f (\tan (e+f x)+1)}-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a \tan (e+f x)+a)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3565
Rule 3645
Rule 3653
Rule 3532
Rule 205
Rule 3634
Rule 63
Rubi steps
\begin{align*} \int \frac{(d \tan (e+f x))^{7/2}}{(a+a \tan (e+f x))^3} \, dx &=-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a+a \tan (e+f x))^2}+\frac{\int \frac{\sqrt{d \tan (e+f x)} \left (\frac{3 a^2 d^3}{2}-2 a^2 d^3 \tan (e+f x)+\frac{7}{2} a^2 d^3 \tan ^2(e+f x)\right )}{(a+a \tan (e+f x))^2} \, dx}{4 a^3}\\ &=-\frac{7 d^3 \sqrt{d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a+a \tan (e+f x))^2}+\frac{\int \frac{\frac{7 a^4 d^4}{2}-4 a^4 d^4 \tan (e+f x)+\frac{7}{2} a^4 d^4 \tan ^2(e+f x)}{\sqrt{d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{8 a^6}\\ &=-\frac{7 d^3 \sqrt{d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a+a \tan (e+f x))^2}+\frac{\int \frac{-4 a^5 d^4-4 a^5 d^4 \tan (e+f x)}{\sqrt{d \tan (e+f x)}} \, dx}{16 a^8}+\frac{\left (11 d^4\right ) \int \frac{1+\tan ^2(e+f x)}{\sqrt{d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{16 a^2}\\ &=-\frac{7 d^3 \sqrt{d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a+a \tan (e+f x))^2}+\frac{\left (11 d^4\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{d x} (a+a x)} \, dx,x,\tan (e+f x)\right )}{16 a^2 f}-\frac{\left (2 a^2 d^8\right ) \operatorname{Subst}\left (\int \frac{1}{32 a^{10} d^8+d x^2} \, dx,x,\frac{-4 a^5 d^4+4 a^5 d^4 \tan (e+f x)}{\sqrt{d \tan (e+f x)}}\right )}{f}\\ &=\frac{d^{7/2} \tan ^{-1}\left (\frac{\sqrt{d}-\sqrt{d} \tan (e+f x)}{\sqrt{2} \sqrt{d \tan (e+f x)}}\right )}{2 \sqrt{2} a^3 f}-\frac{7 d^3 \sqrt{d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a+a \tan (e+f x))^2}+\frac{\left (11 d^3\right ) \operatorname{Subst}\left (\int \frac{1}{a+\frac{a x^2}{d}} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{8 a^2 f}\\ &=\frac{11 d^{7/2} \tan ^{-1}\left (\frac{\sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{8 a^3 f}+\frac{d^{7/2} \tan ^{-1}\left (\frac{\sqrt{d}-\sqrt{d} \tan (e+f x)}{\sqrt{2} \sqrt{d \tan (e+f x)}}\right )}{2 \sqrt{2} a^3 f}-\frac{7 d^3 \sqrt{d \tan (e+f x)}}{8 a^3 f (1+\tan (e+f x))}-\frac{d^2 (d \tan (e+f x))^{3/2}}{4 a f (a+a \tan (e+f x))^2}\\ \end{align*}
Mathematica [A] time = 2.77351, size = 183, normalized size = 1.11 \[ \frac{(d \tan (e+f x))^{7/2} (\sin (e+f x)+\cos (e+f x))^3 \left (\frac{2 \left (2 \sqrt{2} \tan ^{-1}\left (1-\sqrt{2} \sqrt{\tan (e+f x)}\right )-2 \sqrt{2} \tan ^{-1}\left (\sqrt{2} \sqrt{\tan (e+f x)}+1\right )+11 \tan ^{-1}\left (\sqrt{\tan (e+f x)}\right )\right ) \csc (e+f x) \sec ^2(e+f x)}{\tan ^{\frac{5}{2}}(e+f x)}-\frac{\csc ^5(e+f x) (9 \sin (2 (e+f x))+7 \cos (2 (e+f x))+7)}{(\cot (e+f x)+1)^2}\right )}{16 a^3 f (\tan (e+f x)+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.035, size = 440, normalized size = 2.7 \begin{align*} -{\frac{{d}^{3}\sqrt{2}}{16\,f{a}^{3}}\sqrt [4]{{d}^{2}}\ln \left ({ \left ( d\tan \left ( fx+e \right ) +\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) \left ( d\tan \left ( fx+e \right ) -\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) ^{-1}} \right ) }-{\frac{{d}^{3}\sqrt{2}}{8\,f{a}^{3}}\sqrt [4]{{d}^{2}}\arctan \left ({\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ) }+{\frac{{d}^{3}\sqrt{2}}{8\,f{a}^{3}}\sqrt [4]{{d}^{2}}\arctan \left ( -{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ) }-{\frac{{d}^{4}\sqrt{2}}{16\,f{a}^{3}}\ln \left ({ \left ( d\tan \left ( fx+e \right ) -\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) \left ( d\tan \left ( fx+e \right ) +\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}-{\frac{{d}^{4}\sqrt{2}}{8\,f{a}^{3}}\arctan \left ({\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}+{\frac{{d}^{4}\sqrt{2}}{8\,f{a}^{3}}\arctan \left ( -{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}-{\frac{9\,{d}^{4}}{8\,f{a}^{3} \left ( d\tan \left ( fx+e \right ) +d \right ) ^{2}} \left ( d\tan \left ( fx+e \right ) \right ) ^{{\frac{3}{2}}}}-{\frac{7\,{d}^{5}}{8\,f{a}^{3} \left ( d\tan \left ( fx+e \right ) +d \right ) ^{2}}\sqrt{d\tan \left ( fx+e \right ) }}+{\frac{11}{8\,f{a}^{3}}{d}^{{\frac{7}{2}}}\arctan \left ({\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt{d}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.84833, size = 1162, normalized size = 7.04 \begin{align*} \left [\frac{2 \,{\left (\sqrt{2} d^{3} \tan \left (f x + e\right )^{2} + 2 \, \sqrt{2} d^{3} \tan \left (f x + e\right ) + \sqrt{2} d^{3}\right )} \sqrt{-d} \log \left (\frac{d \tan \left (f x + e\right )^{2} - 2 \, \sqrt{d \tan \left (f x + e\right )}{\left (\sqrt{2} \tan \left (f x + e\right ) - \sqrt{2}\right )} \sqrt{-d} - 4 \, d \tan \left (f x + e\right ) + d}{\tan \left (f x + e\right )^{2} + 1}\right ) + 11 \,{\left (d^{3} \tan \left (f x + e\right )^{2} + 2 \, d^{3} \tan \left (f x + e\right ) + d^{3}\right )} \sqrt{-d} \log \left (\frac{d \tan \left (f x + e\right ) + 2 \, \sqrt{d \tan \left (f x + e\right )} \sqrt{-d} - d}{\tan \left (f x + e\right ) + 1}\right ) - 2 \,{\left (9 \, d^{3} \tan \left (f x + e\right ) + 7 \, d^{3}\right )} \sqrt{d \tan \left (f x + e\right )}}{16 \,{\left (a^{3} f \tan \left (f x + e\right )^{2} + 2 \, a^{3} f \tan \left (f x + e\right ) + a^{3} f\right )}}, \frac{11 \,{\left (d^{3} \tan \left (f x + e\right )^{2} + 2 \, d^{3} \tan \left (f x + e\right ) + d^{3}\right )} \sqrt{d} \arctan \left (\frac{\sqrt{d \tan \left (f x + e\right )}}{\sqrt{d}}\right ) - 2 \,{\left (\sqrt{2} d^{3} \tan \left (f x + e\right )^{2} + 2 \, \sqrt{2} d^{3} \tan \left (f x + e\right ) + \sqrt{2} d^{3}\right )} \sqrt{d} \arctan \left (\frac{\sqrt{d \tan \left (f x + e\right )}{\left (\sqrt{2} \tan \left (f x + e\right ) - \sqrt{2}\right )}}{2 \, \sqrt{d} \tan \left (f x + e\right )}\right ) -{\left (9 \, d^{3} \tan \left (f x + e\right ) + 7 \, d^{3}\right )} \sqrt{d \tan \left (f x + e\right )}}{8 \,{\left (a^{3} f \tan \left (f x + e\right )^{2} + 2 \, a^{3} f \tan \left (f x + e\right ) + a^{3} f\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.37346, size = 435, normalized size = 2.64 \begin{align*} -\frac{1}{16} \, d^{4}{\left (\frac{2 \, \sqrt{2}{\left (d \sqrt{{\left | d \right |}} +{\left | d \right |}^{\frac{3}{2}}\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \sqrt{{\left | d \right |}} + 2 \, \sqrt{d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt{{\left | d \right |}}}\right )}{a^{3} d^{2} f} + \frac{2 \, \sqrt{2}{\left (d \sqrt{{\left | d \right |}} +{\left | d \right |}^{\frac{3}{2}}\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \sqrt{{\left | d \right |}} - 2 \, \sqrt{d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt{{\left | d \right |}}}\right )}{a^{3} d^{2} f} - \frac{22 \, \arctan \left (\frac{\sqrt{d \tan \left (f x + e\right )}}{\sqrt{d}}\right )}{a^{3} \sqrt{d} f} + \frac{\sqrt{2}{\left (d \sqrt{{\left | d \right |}} -{\left | d \right |}^{\frac{3}{2}}\right )} \log \left (d \tan \left (f x + e\right ) + \sqrt{2} \sqrt{d \tan \left (f x + e\right )} \sqrt{{\left | d \right |}} +{\left | d \right |}\right )}{a^{3} d^{2} f} - \frac{\sqrt{2}{\left (d \sqrt{{\left | d \right |}} -{\left | d \right |}^{\frac{3}{2}}\right )} \log \left (d \tan \left (f x + e\right ) - \sqrt{2} \sqrt{d \tan \left (f x + e\right )} \sqrt{{\left | d \right |}} +{\left | d \right |}\right )}{a^{3} d^{2} f} + \frac{2 \,{\left (9 \, \sqrt{d \tan \left (f x + e\right )} d \tan \left (f x + e\right ) + 7 \, \sqrt{d \tan \left (f x + e\right )} d\right )}}{{\left (d \tan \left (f x + e\right ) + d\right )}^{2} a^{3} f}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]